﻿using System;
using System.Collections.Generic;
using System.Data.Linq.Mapping;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Anke.SHManage.Model.BasicEventInfo
{
    [Table(Name = "TTaskPersonLink")]
    public class TaskPersonLinkInfo
    {
        /// <summary>
        ///任务编码
        /// </summary>
        private string m_TaskCode;
        [Column(IsPrimaryKey = true, Name = "任务编码", DbType = "char(20)", Storage = "m_TaskCode", UpdateCheck = UpdateCheck.Never)]
        public string TaskCode
        {
            get { return m_TaskCode; }
            set { m_TaskCode = value; }
        }
        /// <summary>
        /// 人员编码
        /// </summary>
        private string m_Code;
        [Column(IsPrimaryKey = true, Name = "人员编码", DbType = "char(5) not null", Storage = "m_Code")]
        public string Code
        {
            get { return m_Code; }
            set { m_Code = value; }
        }
        /// <summary>
        /// 姓名
        /// </summary>
        private string m_Name;
        [Column(Name = "姓名", DbType = "varchar(20) not null", Storage = "m_Name", UpdateCheck = UpdateCheck.Never)]
        public string Name
        {
            get { return m_Name; }
            set { m_Name = value; }
        }
        /// <summary>
        /// 人员类型编码
        /// </summary>
        private int m_PersonTypeCode;
        [Column(Name = "人员类型编码", DbType = "int not null", Storage = "m_PersonTypeCode", UpdateCheck = UpdateCheck.Never)]
        public int PersonTypeCode
        {
            get { return m_PersonTypeCode; }
            set { m_PersonTypeCode = value; }
        }
        /// <summary>
        /// 分站编码
        /// </summary>
        private string m_StationCode;
        [Column(Name = "分站编码", DbType = "char(3) not null", Storage = "m_StationCode", UpdateCheck = UpdateCheck.Never)]
        public string StationCode
        {
            get { return m_StationCode; }
            set { m_StationCode = value; }
        }
        /// <summary>
        /// 是否有效
        /// </summary>
        private bool m_Valid;
        [Column(Name = "是否有效", DbType = "bit", Storage = "m_Valid", UpdateCheck = UpdateCheck.Never)]
        public bool Valid
        {
            get { return m_Valid; }
            set { m_Valid = value; }
        }
    }
}
